package cn.kgc.springcloud.client;

import org.springframework.context.annotation.Configuration;

/**
 * @author: mosin
 * @version: v1.0  2023/1/6
 */
@Configuration
public class HystrixControllerClientFallback implements HystrixControllerClient {

    // 该方法是通过openfeign调用接口时异常的快速响应方法
    @Override
    public String method1(Integer id) {
        return "当前服务网络异常，请稍后再试";
    }
}
